package com.defangit.production.domain;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhangfagen on 2018/5/24.
 */
public class Manufacture {
    /**
     * manufactureName:产品名
     * notUsed:是否禁用
     * type:产品在制类型
     * price:价格
     * picUrls:产品主图；
     * descriptions:详情图
     * spec:规格
     * note:备注
     * craft:工艺
     * from:产品分类
     * worked:是否可以开工;
     * */
    private int id;
    private String manufactureName;
    private boolean notUsed;
    private ManufactureType type=ManufactureType.FINISHED;
    private double price;
    private List<String> picUrls=new ArrayList<>();
    private List<String> descriptions=new ArrayList<>();
    private ManufactureForm manufactureForm;
    private String spec;
    private String note;
    private String craft;
    private boolean worked;

    public boolean isWorked() {
        return worked;
    }

    public Manufacture setWorked(boolean worked) {
        this.worked = worked;
        return this;
    }

    public ManufactureForm getManufactureForm() {
        return manufactureForm;
    }

    public Manufacture setManufactureForm(ManufactureForm manufactureForm) {
        this.manufactureForm = manufactureForm;
        return this;
    }

    public String getSpec() {
        return spec;
    }

    public Manufacture setSpec(String spec) {
        this.spec = spec;
        return this;
    }

    public String getNote() {
        return note;
    }

    public Manufacture setNote(String note) {
        this.note = note;
        return this;
    }

    public String getCraft() {
        return craft;
    }

    public Manufacture setCraft(String craft) {
        this.craft = craft;
        return this;
    }

    public int getId() {
        return id;
    }

    public Manufacture setId(int id) {
        this.id = id;
        return this;
    }

    public String getManufactureName() {
        return manufactureName;
    }

    public Manufacture setManufactureName(String manufactureName) {
        this.manufactureName = manufactureName;
        return this;
    }

    public boolean isNotUsed() {
        return notUsed;
    }

    public Manufacture setNotUsed(boolean notUsed) {
        this.notUsed = notUsed;
        return this;
    }

    public ManufactureType getType() {
        return type;
    }

    public Manufacture setType(ManufactureType type) {
        this.type = type;
        return this;
    }

    public double getPrice() {
        return price;
    }

    public Manufacture setPrice(double price) {
        this.price = price;
        return this;
    }

    public List<String> getPicUrls() {
        return picUrls;
    }

    public Manufacture setPicUrls(List<String> picUrls) {
        this.picUrls = picUrls;
        return this;
    }

    public List<String> getDescriptions() {
        return descriptions;
    }

    public Manufacture setDescriptions(List<String> descriptions) {
        this.descriptions = descriptions;
        return this;
    }
}
